<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets">

<ui:composition template="/publico/layout.xhtml">
	<ui:define name="corpo">



		<div id="corpo">
			<div class="cadastro">
				<fieldset>
					<h:form>
						<h:panelGrid columns="3">
							<h:outputLabel value="Cnpj: * " for="cnpjconsulta" />
							<p:inputMask id="cnpjconsulta" label="Cnpj"
								value="#{testeConsultaCNPJBean.cnpj}" size="20" required="true"
								requiredMessage=" * Cnpj inválido" mask="99.999.999/9999-99" />
							<h:panelGroup>
								<h:commandButton value="Consultar CNPJ" action="#{testeConsultaCNPJBean.consultarPorCNPJ}" />
								<span id="erro"> <h:message for="cnpj" /> </span>
							</h:panelGroup>
						</h:panelGrid>
					</h:form>
				</fieldset>
			</div>
		</div>
	</ui:define>
</ui:composition>
</html>